
import request from '@/utils/request'

// -------- 图片管理 --------

let BASE_ADDRESS = '/work/photo'


//添加上传文件
export const getphotoAddAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}
//根据文件id查询的图片
export const getphotoGetInfoFolderAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoFolder`,
        method: 'get',
        data
    })
}
//分页
export const getphotoListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}
//id查询
export const getphotoGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

//修改图片名字
export const getphotoEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}

//删除图片
export const getphotoRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}